package com.test.demo.domain;

import com.test.demo.util.GeometryTools;
import com.test.demo.util.SvgUtil;
import javafx.scene.text.Text;

import java.awt.*;
import java.awt.geom.Area;
import java.awt.geom.Ellipse2D;
import java.io.Serializable;

/**
 * 金
 */
public class Robot1 extends Robot implements Serializable {
    private static final long serialVersionUID = 1L;

    public Robot1(int x, int y) {
        super.width = 50;
        super.height = 50;
        super.x = x;
        super.y = y;
        super.name = "金";
        super.color = getColorByName();
        shape = SvgUtil.loadSVGPathFromFile(SvgUtil.class.getResourceAsStream("/icons/robot-1.svg"));
        geometry = GeometryTools.shapeToGeometry(shape);
    }

    @Override
    public void die() {
        super.die();
    }
}
